package com.ruitu.ssmic.ui;

import android.os.Bundle;
import android.view.View;

import com.ruitu.ssmic.R;
import com.ruitu.ssmic.view.CountDownButton;

import androidx.appcompat.app.AppCompatActivity;

public class RegisterActivity extends AppCompatActivity {
    private CountDownButton count_down_btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        count_down_btn = findViewById(R.id.count_down_btn);
        count_down_btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                count_down_btn.start();
            }
        });
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (!count_down_btn.isFinish()) {
            count_down_btn.cancle();
        }
    }
}
